package chapter02;

public class JJcfb {
    public static void main(String[] args) {
        printStar();
        printMul();
    }

    public static void printStar() {
        for (int i = 0; i <= 9; i++) {
            for (int j = 0; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println("\n");
        }
    }

    public static void printMul() {
        for (int k = 1; k <= 9; k++) {
            for (int m = 1; m <= k; m++) {
                System.out.print(k + "*" + m + "=" + (k*m) +" ");
            }
            System.out.println(" ");
        }

    }
}
